package com.qfedu.tantu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 支付表(TPay)实体类
 *
 * @author makejava
 * @since 2022-07-02 18:33:04
 */
@Data
@NoArgsConstructor
@TableName("t_houspay")
public class HousPay implements Serializable {
    private static final long serialVersionUID = 541797148001956025L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 支付类型
     */
    private Integer paytype;
    /**
     * 支付金额
     */
    private Double money;
    /**
     * 支付时间
     */
    private Date ctime;
    /**
     * 支付状态
     */
    private Integer flag;
    /**
     * 订单号
     */
    private String no;
    public HousPay(Integer id, Integer paytype, Double money, String no,Integer flag) {
        this.id = id;
        this.paytype = paytype;
        this.money = money;
        this.no = no;
        this.flag=1;//未支付
        this.ctime=new Date();
    }

}

